import request from '@/utils/request.js'

// 获取导航栏的所有分类函数
export function getTyelist () {
  return request({
    url: '/v1_0/channels',
    method: 'get'
  })
}

// 获取导航详情的函数
export function getInfolist (id) {
  return request({
    url: `/v1_0/articles?channel_id=${id}&timestamp=${Date.now()}`,
    method: 'get'
  })
}
